<div class="widget_wrap">
    <div class="widget_top">
        <span class="h_icon blocks_images"></span>
        <h6>Antecedente al&eacute;rgicos</h6>
    </div>
    <div class="widget_content">

        <table class="display data_tbl">
            <thead>
                <tr>
                    <th>
                        Antecedente al&eacute;rgico
                    </th>
                    <th>
                        detalles
                    </th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($historialalergias as $h): ?>
                    <tr class="<?php echo fmod($i, 2) ? "gradeX odd" : "gradeX even" ?>">

                        <td>
                            <?php echo $h['Antecedentesalergico']['codigocie'] ?>&nbsp;
                            <?php echo $h['Antecedentesalergico']['descripcioncie'] ?>&nbsp;
                            <?php echo $h['Antecedentesalergico']['observaciones'] ?>
                        </td>

                        <td class="center">
                            <span>
                                <a class="action-icons c-delete" href="<?php echo $this->Html->url(array('controller' => 'Pacientes', 'action' => 'eliminaalergia', $h['Antecedentesalergico']['id'])) ?>" title="Detalles">
                                    Eliminar
                                </a>
                            </span>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>

    </div>
</div>